"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert(
      "Users",
      [
        {
          gender: 1,
          username: 'student',
          password: '123123',
          name: '张三',
          stuCode: '201931773318',
          college: 1,
          major: 1,
          role: 1,
          phone: '1982544309',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          gender: 0,
          username: 'student1',
          password: '123123',
          name: '李四',
          stuCode: '201931773319',
          college: 1,
          major: 1,
          role: 1,
          phone: '1982544309',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          gender: 0,
          username: 'student3',
          password: '123123',
          name: '王五',
          stuCode: '201931773320',
          college: 0,
          major: 2,
          role: 1,
          phone: '1989544309',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
      ],
      {}
    );
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.bulkDelete("Users", null, {});
  },
};
